package org.cyb.demo.dao;

import org.apache.ibatis.annotations.Param;
import org.cyb.demo.domain.User;

import java.util.List;


public interface UserMapper {

	User selectByAccountAndPassword(
			@Param("user")User user
	);

	void insert(
			@Param("user")User user
	);

	List<User> selectByAccount(
			@Param("user")User user
	);

	List<User> selectByName(
			@Param("user")User user
	);

	List<User> selectAll(
	);

	void update(
			@Param("user")User user
	);

	void delete(
			@Param("user")User user
	);
}
